package com.qf.wangqing.sportsnews.bean;

import android.content.Intent;
import android.util.Log;
import android.view.View;

import com.qf.wangqing.sportsnews.activity.TitleType2Activity;
import com.qf.wangqing.sportsnews.activity.TitleType4Activity;

import java.util.List;

/**
 * 新闻 推荐 tops  虎扑体育  直播吧 腾讯体育
 * Created by WangQing on 2016/12/15.
 */

public class RecommendTopsEntity {
    private int id;
    private int user_id;
    private int dashboard_id;
    private int dashboard_type;
    private int dashboard_data;
    private String title;//
    private String text;
    private String image;
    private int image_type;
    private int content_type;
    private int status;
    private int show_type;
    private String label_name;
    private String editor;
    private String source_link;

    private RecommendTopsUserEntity user;
    private List<RecommendTopsChannelsEntity> channels;

   private String video_link;

    public String getVideo_link() {
        return video_link;
    }

    public void setVideo_link(String video_link) {
        this.video_link = video_link;
    }

    //三张图片的集合
    private List<String> images;

    public List<String> getImages() {
        return images;
    }

    public void setImages(List<String> images) {
        this.images = images;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public int getDashboard_id() {
        return dashboard_id;
    }

    public void setDashboard_id(int dashboard_id) {
        this.dashboard_id = dashboard_id;
    }

    public int getDashboard_type() {
        return dashboard_type;
    }

    public void setDashboard_type(int dashboard_type) {
        this.dashboard_type = dashboard_type;
    }

    public int getDashboard_data() {
        return dashboard_data;
    }

    public void setDashboard_data(int dashboard_data) {
        this.dashboard_data = dashboard_data;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public int getImage_type() {
        return image_type;
    }

    public void setImage_type(int image_type) {
        this.image_type = image_type;
    }

    public int getContent_type() {
        return content_type;
    }

    public void setContent_type(int content_type) {
        this.content_type = content_type;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getShow_type() {
        return show_type;
    }

    public void setShow_type(int show_type) {
        this.show_type = show_type;
    }

    public String getLabel_name() {
        return label_name;
    }

    public void setLabel_name(String label_name) {
        this.label_name = label_name;
    }

    public String getEditor() {
        return editor;
    }

    public void setEditor(String editor) {
        this.editor = editor;
    }

    public String getSource_link() {
        return source_link;
    }

    public void setSource_link(String source_link) {
        this.source_link = source_link;
    }

    public RecommendTopsUserEntity getUser() {
        return user;
    }

    public void setUser(RecommendTopsUserEntity user) {
        this.user = user;
    }

    public List<RecommendTopsChannelsEntity> getChannels() {
        return channels;
    }

    public void setChannels(List<RecommendTopsChannelsEntity> channels) {
        this.channels = channels;
    }
    //获取完整的图片url的方法
    public String getFullImageUrl(){
        return "http://lifeixphoto.qiniudn.com/"+image;
    }

    public void clickItem(View view) {
        Intent intent = new Intent();
        intent.setClass(view.getContext(), TitleType2Activity.class);
        intent.putExtra("link", id + "");
        view.getContext().startActivity(intent);
    }
}
